package hips.images.floating;

class PixelPriorityFloat implements Comparable<PixelPriorityFloat>{
    private int pixel;
    private float priority;

    public PixelPriorityFloat(int p, float prio){
        this.pixel = p;
        this.priority = prio;
    }

    protected int getPixel() {
        return pixel;
    }

    protected float getPriority() {
        return priority;
    }
    
    public int compareTo(PixelPriorityFloat o) {
		if (o.priority > priority){
			return -1;
		}
		if (o.priority == priority){
			return 0;
		}
		return 1;
	}
}